package cn.e2win.base.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "sys_approve_log")
public class SysApproveLog extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3349629527433691725L;

	public SysApproveLog() {
		super();
	}
	public SysApproveLog(BaseApproveI o) {
		this.approveDesc = o.getApproveDesc();
		this.approveStatus = o.getApproveStatus();
		this.entityType = o.getClass().getSimpleName();
		this.entityId = o.getId();
		this.entityNo = o.getEntityNo();
	}
	@Id
	@Basic(optional = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;
//实体类型，即表对象
	private String entityType;
	
//对应表的ID
	private Integer entityId;

//对应表的ID
	private String entityNo;

//审核状态
	private String approveStatus;
//审核状态
	private String approveDesc;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getEntityType() {
		return entityType;
	}

	public void setEntityType(String entityType) {
		this.entityType = entityType;
	}

	public Integer getEntityId() {
		return entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	public String getEntityNo() {
		return entityNo;
	}

	public void setEntityNo(String entityNo) {
		this.entityNo = entityNo;
	}

	public String getApproveStatus() {
		return approveStatus;
	}

	public void setApproveStatus(String approveStatus) {
		this.approveStatus = approveStatus;
	}

	public String getApproveDesc() {
		return approveDesc;
	}

	public void setApproveDesc(String approveDesc) {
		this.approveDesc = approveDesc;
	}

}
